package com.usian.service.impl;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

@Component
public class JobServiceImpl {


    @XxlJob("demoJobHandler")
    public ReturnT<String> demoJobHandler(String param) throws Exception {
        for (int i = 0; i < 5; i++) {
            System.out.println("定时任务执行中"+i);
        }
        return ReturnT.SUCCESS;
    }
}
